<tagLib name="html" />
<div id="main-content">
    <div id="main" class="main">
        <!-- 修改密码 start -->
        <div class="spin-cont">
            <div class="user-hd">
                <h2>财务管理>>{$page_title}</h2>
                <a class="kehu" href="javascript:history.back();">
                  返回
                </a>
            </div>
            <div class="user_zl">
                <dl class="clearfix">
                    <dt>充值流水号：</dt>
                    <dd>{$info.sn}</dd>
                </dl>
                <dl class="clearfix">
                    <dt>充值创建时间：</dt>
                    <dd>{$info.create_time|date="Y-m-d H:i:s",###}</dd>
                </dl>
                <dl class="clearfix">
                    <dt>充值处理时间：</dt>
                    <dd>{$info.update_time|date="Y-m-d H:i:s",###}</dd>
                </dl>
                <dl class="clearfix">
                    <dt>充值申请人：</dt>
                    <dd>{$info.create_user_id|getUserName}</dd>
                </dl>
                <dl class="clearfix">
                    <dt>审核人：</dt>
                    <dd>{$info.update_user_id|getUserName}</dd>
                </dl>					
                <dl class="clearfix">
                    <dt>充值主机号：</dt>
                    <dd>{$info.cinema_host_id|getCinemaHostName}</dd>
                </dl>
                <dl class="clearfix">
                    <dt>充值影院名称：</dt>
                    <dd>{$info.cinema_host_id|getCinemaName}</dd>
                </dl>
                <dl class="clearfix">
                    <dt>充值金额：</dt>
                    <dd>{$info.money}元</dd>
                </dl>
				<if condition="$info.recharge_from eq 1 ">
                <dl class="clearfix">
                    <dt>到款银行：</dt>
                    <dd>{$bank_account_options[$info['account_name']]}</dd>
                </dl>
                <dl class="clearfix">
                    <dt>账户号码：</dt>
                    <dd>{$bank_num_options[$info['account_number']]}</dd>
                </dl>				
                <dl class="clearfix">
                    <dt>充值凭证号：</dt>
                    <dd>{$info.description}</dd>
                </dl>
				</if>	
				<dl class="clearfix">
                    <dt>凭证图片：</dt>
					<notempty name="info.img_url">
                    <dd style="width:239px;">
                        <img src="{$info.img_url}" style="width: 200px; height: 200px;">
                    </dd>
					<dd style="margin-top:170px;padding-left:0px;"><a href="{:U('Admin/File/downloadFile',array('recharge_log_id'=>$info['recharge_log_id']))}" target="_blank">下载图片</a></dd>					
                    </notempty>
					<dd class="error_message" id="message_img_url"></dd>
                </dl>		
            </div>
        </div>
    </div>
</div>

<script type="text/javascript">
function downloadFile(){
	var file = "{$info['img_url']}";
	$.ajax({
		url:"{:U('Admin/File/downloadFile')}",
		type:"post",
		data:{file:file},
		success:function(data,status,xhr){
			<!-- window.open(data.ulr); -->
		},
	});
}
</script>
